package com.xieyong.mywebsite.service;

import com.github.pagehelper.PageInfo;
import com.xieyong.mywebsite.model.entity.Category;

import java.util.List;

public interface CategoryService {

    void add(Category category);

    void update(Category category);

    void delete(Category category);

    void deleteById(Integer id);

    PageInfo<Category> page(Integer pageNum, Integer pageSize, Category category);

    List<Category> list();

    Category findById(Integer id);

}
